Integrand size = 28, antiderivative size = 81 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=\frac {(-1)^{3/4} \sqrt {d} \arctan \left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a f}+\frac {i \sqrt {d \tan (e+f x)}}{2 f (a+i a \tan (e+f x))} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {3630, 3614, 211} \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=\frac {(-1)^{3/4} \sqrt {d} \arctan \left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a f}+\frac {i \sqrt {d \tan (e+f x)}}{2 f (a+i a \tan (e+f x))} \]
[In]
[Out]
Rule 211
Rule 3614
Rule 3630
Rubi steps \begin{align*} \text {integral}& = \frac {i \sqrt {d \tan (e+f x)}}{2 f (a+i a \tan (e+f x))}-\frac {\int \frac {\frac {1}{2} i a d^2-\frac {1}{2} a d^2 \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{2 a^2 d} \\ & = \frac {i \sqrt {d \tan (e+f x)}}{2 f (a+i a \tan (e+f x))}+\frac {d^3 \text {Subst}\left (\int \frac {1}{\frac {1}{2} i a d^3+\frac {1}{2} a d^2 x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 f} \\ & = \frac {(-1)^{3/4} \sqrt {d} \arctan \left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a f}+\frac {i \sqrt {d \tan (e+f x)}}{2 f (a+i a \tan (e+f x))} \\ \end{align*}
Time = 0.37 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.09 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=\frac {2 \sqrt {d \tan (e+f x)}-(1+i) \sqrt {2} \sqrt {d} \text {arctanh}\left (\frac {(1+i) \sqrt {d \tan (e+f x)}}{\sqrt {2} \sqrt {d}}\right ) (-i+\tan (e+f x))}{4 a f (-i+\tan (e+f x))} \]
[In]
[Out]
Time = 0.79 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.85
method | result | size |
derivativedivides | \(\frac {d \arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {i d}}\right )}{2 f a \sqrt {i d}}+\frac {d \sqrt {d \tan \left (f x +e \right )}}{2 f a \left (d \tan \left (f x +e \right )-i d \right )}\) | \(69\) |
default | \(\frac {d \arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {i d}}\right )}{2 f a \sqrt {i d}}+\frac {d \sqrt {d \tan \left (f x +e \right )}}{2 f a \left (d \tan \left (f x +e \right )-i d \right )}\) | \(69\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 288 vs. \(2 (61) = 122\).
Time = 0.25 (sec) , antiderivative size = 288, normalized size of antiderivative = 3.56 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=-\frac {{\left (a f \sqrt {\frac {i \, d}{4 \, a^{2} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} \log \left (-2 \, {\left (2 \, {\left (i \, a f e^{\left (2 i \, f x + 2 i \, e\right )} + i \, a f\right )} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {i \, d}{4 \, a^{2} f^{2}}} + i \, d e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) - a f \sqrt {\frac {i \, d}{4 \, a^{2} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} \log \left (-2 \, {\left (2 \, {\left (-i \, a f e^{\left (2 i \, f x + 2 i \, e\right )} - i \, a f\right )} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {i \, d}{4 \, a^{2} f^{2}}} + i \, d e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}\right ) - \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} {\left (i \, e^{\left (2 i \, f x + 2 i \, e\right )} + i\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a f} \]
[In]
[Out]
\[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=- \frac {i \int \frac {\sqrt {d \tan {\left (e + f x \right )}}}{\tan {\left (e + f x \right )} - i}\, dx}{a} \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
none
Time = 0.49 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.32 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=\frac {1}{2} \, d^{2} {\left (\frac {\sqrt {2} \arctan \left (\frac {8 \, \sqrt {d^{2}} \sqrt {d \tan \left (f x + e\right )}}{4 i \, \sqrt {2} d^{\frac {3}{2}} + 4 \, \sqrt {2} \sqrt {d^{2}} \sqrt {d}}\right )}{a d^{\frac {3}{2}} f {\left (\frac {i \, d}{\sqrt {d^{2}}} + 1\right )}} + \frac {\sqrt {d \tan \left (f x + e\right )}}{{\left (d \tan \left (f x + e\right ) - i \, d\right )} a d f}\right )} \]
[In]
[Out]
Time = 4.69 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.88 \[ \int \frac {\sqrt {d \tan (e+f x)}}{a+i a \tan (e+f x)} \, dx=-\frac {2\,\sqrt {\frac {1}{16}{}\mathrm {i}}\,\sqrt {d}\,\mathrm {atanh}\left (\frac {4\,\sqrt {\frac {1}{16}{}\mathrm {i}}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{\sqrt {d}}\right )}{a\,f}-\frac {d\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{2\,a\,f\,\left (-d\,\mathrm {tan}\left (e+f\,x\right )+d\,1{}\mathrm {i}\right )} \]
[In]
[Out]